package com.sghd.charge.module.payment;

import com.sghd.charge.module.model.ChannelType;
import com.sghd.charge.module.model.OrderInfo;

import javax.servlet.ServletRequest;

/**
 * @author frank
 */
public interface ChannelProcessor {

    /**
     * 处理类型
     * @return
     */
    ChannelType getType();

    /**
     * 生成订单(所有平台通用)
     * @param playerId
     * @param goods
     * @param goodsName
     * @param goodsDes
     * @return
     */
    OrderInfo generateOrder(long playerId,int serverId, String goodsId, String ip) throws Exception;

    /**
     * 收到第三方服务器，支付成功的回调
     * @param request
     * @return
     */
    String notify(ServletRequest request);

}
